<template>
	<view class="container">

		<CustomHeader :isHomepage="false"></CustomHeader>


		<!-- Middle Section Title -->
		<view class="middle-title-area">
			<text class="middle-title">快速建立网上纪念馆</text>
		</view>

		<!-- Main Content - Form Sections -->
		<view class="main-content">

			<!-- Section 1: 填写纪念馆资料 -->
			<view class="form-section">
				<view class="section-title">填写纪念馆资料</view>

				<view class="form-item">
					<text class="form-label">逝者姓名:</text>
					<view class="input-wrapper">
						<input class="form-input" type="text" placeholder="逝者姓名" />
					</view>
				</view>
				<view class="form-item">
					<text class="form-label">逝者姓名:</text>
					<view >
						<van-uploader v-model="fileList" multiple :after-read="afterRead"/>
					</view>
				</view>
			</view>
			<!-- Submit Button -->
			<button class="submit-btn" @click="submit">提交</button>
		</view>

		<Footer></Footer>

	</view>
</template>

<script setup>
	import {
		ref,toRaw
	} from 'vue';
	import CustomHeader from '@/components/header/index.vue'; // Adjust path as needed
	import Footer from '@/components/footer/index.vue'
	
	const fileList = ref([])
	
	
</script>

<style scoped>
	/* Scoped styles for this page */
	/* Reusing styles from the previous page where applicable */
	.container {
		display: flex;
		flex-direction: column;
		min-height: 100vh;
		background-color: #f0f0f0;
		/* Lighter gray background matching the image */
		padding-bottom: 50rpx;
		/* Add some padding at the bottom */
	}

	/* Navigation Bar Styles - Copied from previous, adjusted if necessary based on placement */
	/* Assuming this is the top bar based on the second screenshot */
	.nav-bar {
		display: flex;
		justify-content: space-between;
		align-items: center;
		height: 88rpx;
		padding: 0 20rpx;
		background-color: #fff;
		border-bottom: 1rpx solid #eee;
	}

	.nav-left {
		display: flex;
		align-items: center;
	}

	.nav-icon {
		font-size: 40rpx;
		/* Adjust icon size */
		color: #333;
		margin-right: 30rpx;
		/* Spacing between icons */
	}

	.nav-right {
		display: flex;
		align-items: center;
	}

	.nav-link {
		font-size: 28rpx;
		color: #333;
		margin-left: 40rpx;
		/* Spacing between links */
	}

	.nav-link.active {
		color: #ff9800;
		/* Orange color for active/selected link */
		font-weight: bold;
	}

	/* Banner Styles - Copied from previous */
	.banner {
		width: 100%;
		height: 300rpx;
		/* Adjust height as needed */
		position: relative;
		overflow: hidden;
	}

	.banner-bg {
		width: 100%;
		height: 100%;
		position: absolute;
		top: 0;
		left: 0;
	}

	.banner-overlay {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		padding: 30rpx 40rpx;
		/* Adjust padding */
		color: #fff;
		/* Text color on banner */
		text-shadow: 1rpx 1rpx 2rpx rgba(0, 0, 0, 0.5);
	}

	.banner-title-area {
		display: flex;
		align-items: flex-end;
	}

	.banner-main-title {
		font-size: 50rpx;
		/* Adjust font size */
		font-weight: bold;
		margin-right: 20rpx;
	}

	.banner-sub-area {
		display: flex;
		flex-direction: column;
		font-size: 24rpx;
		/* Adjust font size */
	}

	.banner-url {
		font-size: 20rpx;
		/* Adjust font size */
	}

	.banner-slogan-area {
		display: flex;
		justify-content: flex-end;
		/* Align to the right */
		font-size: 36rpx;
		/* Adjust font size */
	}

	.banner-slogan {
		margin-left: 30rpx;
		/* Spacing between slogans */
		font-weight: bold;
	}

	/* Middle Section Title Styles */
	.middle-title-area {
		text-align: center;
		padding: 30rpx 0;
		/* Add vertical padding */
		background-color: #fff;
		/* White background for this section */
		margin-top: 20rpx;
		/* Space below banner */
	}

	.middle-title {
		font-size: 28rpx;
		color: #333;
		font-weight: bold;
	}


	/* Main Content Styles - Similar to previous, but adjusted margins/padding */
	.main-content {
		padding: 30rpx;
		background-color: #fff;
		margin: 20rpx 20rpx 0 20rpx;
		/* Side margins and top margin */
		border-radius: 10rpx;
		box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
		/* Subtle shadow */
	}

	/* Form Section Title Styles */
	.section-title {
		font-size: 28rpx;
		color: #4CAF50;
		/* Green color */
		font-weight: bold;
		padding-left: 20rpx;
		/* Space for the border */
		border-left: 8rpx solid #4CAF50;
		/* Green border on the left */
		margin-bottom: 40rpx;
		/* Space below the title */
	}

	/* Form Styles - Copied from previous, with additions for date hints and picker */
	.form-section {
		margin-bottom: 40rpx;
	}

	.form-item {
		margin-bottom: 30rpx;
		position: relative;
		/* Needed for absolute positioning of hints */
	}

	.form-label {
		font-size: 28rpx;
		color: #333;
		margin-bottom: 10rpx;
		display: block;
	}

	.input-wrapper {
		position: relative;
		display: flex;
		align-items: center;
		border: 1rpx solid #ddd;
		border-radius: 5rpx;
		padding: 0 20rpx;
		height: 80rpx;
	}

	.form-input {
		flex: 1;
		height: 100%;
		font-size: 28rpx;
		color: #333;
		-webkit-appearance: none;
		-moz-appearance: none;
		appearance: none;
		padding: 0;
		/* Ensure no extra padding */
		background-color: transparent;
		/* Ensure background is transparent for wrapper border */
	}

	.form-input::placeholder {
		color: #ccc;
	}

	/* Specific style for the date input hint text */
	.input-hint {
		position: absolute;
		right: 20rpx;
		/* Position relative to the input wrapper */
		top: -25rpx;
		/* Position above the input wrapper, adjust as needed */
		font-size: 22rpx;
		/* Smaller font size */
		color: #999;
		pointer-events: none;
		background-color: #fff;
		/* Background to cover potential content below */
		padding: 0 5rpx;
		/* Small padding */
		z-index: 1;
		/* Ensure it's above the input border */
	}

	/* Adjust position for icon suffix if present */
	.input-suffix-text {
		position: absolute;
		right: 20rpx;
		/* Adjust position */
		font-size: 24rpx;
		color: #999;
		pointer-events: none;
	}

	.input-icon {
		position: absolute;
		right: 20rpx;
		/* Position icons */
		font-size: 30rpx;
		/* Adjust icon size */
		color: #ccc;
		/* Icon color */
		pointer-events: none;
	}

	/* Adjust icon position if there's suffix text */
	.input-icon.right {
		right: 50rpx;
		/* Position icon when suffix text is present */
	}

	.password-hint,
	.name-hint {
		right: 50rpx;
		/* Position hint text next to icon */
	}


	/* Verify Code Item - Copied from previous */
	.verify-code-item {
		display: flex;
		align-items: center;
	}

	.code-input-wrapper {
		flex: 1;
		border: 1rpx solid #ddd;
		border-radius: 5rpx;
		padding: 0 20rpx;
		height: 80rpx;
		margin-right: 20rpx;
	}

	.code-input {
		border: none;
		padding: 0;
	}

	.get-code-btn {
		height: 80rpx;
		line-height: 80rpx;
		font-size: 28rpx;
		color: #fff;
		background-color: #ff9800;
		border-radius: 5rpx;
		padding: 0 30rpx;
		border: none;
		margin: 0;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	/* Picker Styles - Make it look like an input */
	.picker-wrapper {
		padding: 0 20rpx;
		/* Match input padding */
		/* Border, height etc. are already handled by .input-wrapper */
	}

	.picker-text {
		flex: 1;
		/* Allow text to grow */
		height: 100%;
		/* Match wrapper height */
		line-height: 80rpx;
		/* Center text vertically */
		font-size: 28rpx;
		color: #333;
		/* Match input text color */
		/* Adjust color if placeholder is shown */
		text-align: left;
		/* Align text left */
	}

	.picker-text[data-v-xxxx] {
		/* You might need to adjust the data-v- scope hash */
		color: #ccc;
		/* Placeholder color if no value selected */
	}

	/* A more robust way to handle placeholder color for picker text */
	.picker-text:empty::before {
		content: '-------请选择-------';
		/* Placeholder content */
		color: #ccc;
		/* Placeholder color */
	}





	/* Submit Button Style - Text is different, but style is similar */
	.submit-btn {
		height: 90rpx;
		line-height: 90rpx;
		font-size: 32rpx;
		color: #fff;
		background-color: #ff9800;
		/* Orange color */
		border-radius: 8rpx;
		/* More rounded corners */
		text-align: center;
		margin-top: 40rpx;
		/* Space above the button */
		border: none;
		margin-bottom: 30rpx;
	}

	/* Terms Checkbox - Copied from previous */
	.terms-checkbox {
		display: flex;
		align-items: flex-start;
		font-size: 26rpx;
		color: #666;
	}

	.terms-text {
		flex: 1;
	}

	.terms-link {
		color: #007aff;
		/* Blue color for link */
		text-decoration: underline;
	}


	/* QR Codes Section - Copied from previous */
	.qr-codes-section {
		display: flex;
		justify-content: space-around;
		padding: 40rpx 0;
		border-top: 1rpx dashed #eee;
		margin-top: 40rpx;
		margin-left: 20rpx;
		/* Add side margins */
		margin-right: 20rpx;
		background-color: #fff;
		/* White background */
		border-radius: 10rpx;
		box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
	}

	.qr-item {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.qr-image {
		width: 200rpx;
		height: 200rpx;
		/* Need actual images */
		background-color: #eee;
		/* Placeholder background */
	}

	.qr-label {
		font-size: 26rpx;
		color: #555;
		margin-top: 10rpx;
	}

	/* Footer Styles - Copied from previous, adjusted padding */
	.footer {
		margin-top: 40rpx;
		padding: 40rpx 20rpx 40rpx 20rpx;
		/* Reduced bottom padding as no floating button */
		background-color: #e0e0e0;
		/* Slightly darker gray background matching the image footer */
		text-align: center;
	}

	.footer-links {
		font-size: 26rpx;
		color: #555;
		margin-bottom: 20rpx;
	}

	.footer-links text {
		margin: 0 10rpx;
	}

	.footer-copyright {
		font-size: 22rpx;
		color: #888;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.footer-copyright text {
		margin-bottom: 5rpx;
	}

	/* No Floating Button in this specific screenshot */
</style>